/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.gov.ana.negocio;

import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;

/**
 *
 * @author rafael.rodrigues
 */
public class ArquivoNegocio {
    
        public static void gravarEmArquivo(String linha) throws IOException{    
                
            FileWriter fileWriter = new FileWriter("C:\\tc\\log.txt", true);    
            PrintWriter printWriter = new PrintWriter(fileWriter);    
                
            printWriter.println(linha);    
            printWriter.flush();    
            printWriter.close();    
        
        }   
}
